<template>
  <div class="btn">
    <!-- 接收组件调用时，被定义在组件标签内部得内容 -->
    <slot></slot>
  </div>
</template>

<script>
export default {};
</script>

<style scoped>
.btn {
  display: inline-block;
  width: 60px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  background-color: #41b883;
  color: white;
  cursor: pointer;
  border-radius: 8px;
  user-select: none;
  margin: 0 4px;
}
.btn:active {
  background-color: #35966a;
}
</style>
